<?php get_header();?>
<style>
.content-box-1
{
	margin-top:-5px;
}
.side-danh-muc-top
{
	margin-top:13px;
}
.content-box-1
{
	margin-top:15px;
	margin-bottom:0;	
}
.content-box-1 img
{
	padding:0;
}
.content-box-1 p
{
	width:665px !important;
	line-height:20px;
	word-spacing:1px;
}
.tabs-2
{
	margin-top:-20px;
}
</style>
<body>
<div id="topbg"></div>
<div id="container">
	<div id="header">
    	<?php include TEMPLATEPATH.'/controllers/banner/controller-banner.php';?>
        <?php require_once TEMPLATEPATH.'/views/menu/view-menu.php';?>
    </div>
    
    <div id="mid">
    	<div id="box-content">
            <!-- begin breadcrumb -->
            <?php require_once TEMPLATEPATH.'/views/breadcrumb/view-breadcrumb.php';?>
            <!-- end #breadcrumb -->
            
            <div id="content" class="pages-hotels-4-1">
                <!-- Begin slideshow -->
                <?php include TEMPLATEPATH.'/views/hotel/view-page-hotel-intro.php';?>
                
                <!-- End slideshow -->   
                
                <?php include TEMPLATEPATH.'/views/hotel/view-search-hotel-form.php';?>                
                             
               <div class="tabs-2">
                    <span class="title">POPULAR HOTELS</span>
                      	<div class="side-danh-muc-top">
                    <?php //require_once TEMPLATEPATH.'/views/menu/view-tab-tour.php';
                            $args = array('title_li'  => '','orderby' => 'id','taxonomy' => 'category','exclude'	=> array(1),'hide_empty' => 0,'hierarchical'  => true,'depth'  => 1);                      	 	
                            $categories = get_categories($args);	
                    ?>
                    		<ul id="countrytabs-2" class="shadetabs">
                            <?
                                $tamp = 1;
                                foreach($categories as $value)
                                {
                                    if($tamp==1)
                                    {
                                     ?>
                                         <li> <a class="selected" href="<?php echo get_category_link($value->term_id);?>" ><? echo get_tab_name($value->name);?></a></li>
                                     <?    
                                    }   
                                    else
                                    {
                                     ?>
                                         <li> <a  href="<?php echo get_category_link($value->term_id);?>" ><? echo get_tab_name($value->name);?></a></li>
                                     <?   
                                    }
                                 $tamp++;
                                }
                                ?>                                                    
		                    </ul>
                    	</div>
                  <div id="content" class="page-searchresults" style="margin-top: -20px;">
	            	<div class="content-box-1">
	            		<span class="top-tabs-2"></span>
	                   <!-- <h1 class="label-content-box-1-top">Search Results</h1> -->
	                   <?php
	                   ## process tour
	                    $html = null;                    									
	                    //echo $term;
	                    $term = 'hotel-in-vietnam';
					    $num_post	= 15;
					    $post_type	= 'post';
					    $taxonomy	= 'category';
					    $field		= 'slug';				    
					    $metakey	= $wpdb->prefix.'display';
					    $metavalue  = 'display';
					    $hotels = db_query_posts_in_terms_child_nopage($num_post, $post_type, $taxonomy, $field, $term, $metakey, $metavalue);
					    query_posts($hotels); 
					    $html.='<ul>';                	    
					    require_once TEMPLATEPATH.'/views/hotel/loop-hotel.php';                         
					 	$html.='</ul>';     
					 	echo $html;  
	                   ?>                   
	                   <div class="paging">
				            <?php bt_paginate();?>
						</div>						
	                </div>
	                <?php require_once TEMPLATEPATH.'/views/adv/view-home-adv.php';?>
	                <?php include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
            	</div>   
               </div>
            </div>
        </div>
        
        <?php get_sidebar();?>
    </div>
    
    <?php //include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
    <?php get_footer('tour');?>
